home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Examples
/
More Examples
/
Using tunigs
< prev
Wrap
Text File
|
1998-10-26
|
2KB
|
108 lines
; testing tunings
Microtonalities can be realized in two ways: as microtuned
tonalities or using a tuning class. These two can co-exist.
When evaluating examples reset compiler before, or use eval
buffer.
=====================
Microtuned Tonalities
=====================
(create-tonality agricola-monochord
'(1/1 135/128 9/8 1215/1024 81/64 4/3 45/32 3/2 405/256 27/16 16/9 243/128))
; note the number 1000 - this must be set properly to match the
; number of pitch steps between semitones, is synth-specific.
(def-section sect-a
default
zone '(2/1)
tonality (activate-tonality (agricola-monochord c 4 1000))
length '(1/8)
duration '(1/4t)
velocity '(64)
piano
symbol '(a b c d e f g h i j k l m n o p)
)
(def-tempo 120)
(midiport :printer)
(play-file-p "tunings"
piano '(sect-a)
)
============
Tuning Class
============
(def-symbol
violin '(a b b d c d)
)
(def-tuning
violin '(0 -300 0 300 0 0)
)
(def-length
violin '(1/4 1/4 1/4 1/4 1/4 1/4)
)
;; You have to use non-overlapping or non maximum length durations
;; otherwise the last one of the two contacting notes is removed
;; and you don't hear it. Use duration or legato expression to adjust
;; durations.
(def-duration
violin '(1/5 1/5 1/5 1/5 1/5 1/5)
)
(def-velocity
violin '(60 30 50 20 20 10)
)
(def-zone
violin (make-zone (length-of violin))
)
(def-tonality
default (activate-tonality (chromatic c 5))
)
(def-tempo 120)
(midiport :printer)
(compile-instrument-p "ccl;output:" "violin"
violin
)
=========
Mixed Use
=========
If both microtuned tonalities and tuning class are used, their
sum determines the final tuning.
(def-section sect-a
default
zone '(4/1)
tonality (activate-tonality (equal-tempered 24 'c 4 1000))
length '(4/24)
velocity '(64)
tuning '(50 -50 25 -25)
piano
symbol '(a b c d e f g h i j k l m n o p q r s t u v x y)
)
(def-tempo 120)
(midiport :printer)
(play-file-p "tunings2"
piano '(sect-a)
)